package cn.gcjxsc.payment.repository.wx;

import cn.gcjxsc.payment.entity.wx.RedPackRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface RedPackRecordRepository extends JpaRepository<RedPackRecord, Integer>, JpaSpecificationExecutor<RedPackRecord> {

    RedPackRecord findByTradeNo(String tradeNo);

    RedPackRecord findByOutTradeNo(String tradeNo);

    RedPackRecord findBySnAndType(String sn, Integer type);

    List<RedPackRecord> findBySn(String sn);
}
